package edu.hm.webengineer.meetagain.client;

import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.Widget;

public class ViewHandler implements Const {
	
	private static ViewHandler viewHandler;
	
	private ViewHandler() {
	}
	
	public static ViewHandler getInstance() {
		if (viewHandler == null) {
			viewHandler = new ViewHandler();
		}
		return viewHandler;
	}
	
	public void setHeader(Widget header) {
		RootPanel.get(LAYOUT_ID_HEAD_DIV).add(header);
	}
	
	public void setContent(Widget content) {
		RootPanel.get(LAYOUT_ID_CONTENT_DIV).add(content);
	}
	
	public void setFooter(Widget footer) {
		RootPanel.get(LAYOUT_ID_FOOTER_DIV).add(footer);
	}

}
